/*
 * GotoIfFalse.h
 *
 *  Created on: 17.04.2012
 *      Author: Eugene Kornykhin
 */

#ifndef GOTOIFFALSE_H_
#define GOTOIFFALSE_H_

#include "../PElement.h"

class GotoIfFalse: public PElement {
public:
	GotoIfFalse();
	virtual ~GotoIfFalse();

	virtual void execute(Interpreter &);

	virtual PolizPosition next_position_after(PolizPosition) const;
	virtual bool isHalt() const;
	virtual GotoIfFalse *clone(const Poliz &) const;
	string toString() const;

private:
	bool condition;
	PolizPosition destination;
};

#endif /* GOTOIFFALSE_H_ */
